// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  modules: [
    '@element-plus/nuxt',
    '@pinia/nuxt',
    '@pinia-plugin-persistedstate/nuxt',
  ],
  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          // 主题定制
          additionalData: `@use "~/assets/element/index.scss" as *;`,
        },
      },
    },
  },
  // 该配置项请参考：
  // https://github.com/element-plus/element-plus-nuxt
  elementPlus: { importStyle: 'scss' },
  // 环境变量
  runtimeConfig: {
    // 私密
    jwtSecret: 'Hello ketty!',
    secretID: process.env.SECRET_ID,
    secretKey: process.env.SECRET_KEY,
    bucket: process.env.BUCKET,
    region: process.env.REGION,
    // 公开
    public: {},
  },
})
